Xceed .NET Libraries Documentation
Xceed.Zip Assembly / Xceed.Zip Namespace / QuickZip Class / Remove Method / Remove(String,String[]) Method
The fully-qualified path and name of the zip file.
The files to remove from zipFileName. Cannot be a null reference (Nothing in Visual Basic).


    Remove(String,String[]) Method
    Removes files from a zip file.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub Remove( _
       ByVal zipFileName As String, _
       ByVal ParamArray filesToRemove() As String _
    ) 
     
    'Usage
     
    Dim zipFileName As String
    Dim filesToRemove() As String
     
    QuickZip.Remove(zipFileName, filesToRemove)

    Parameters

    zipFileName
    The fully-qualified path and name of the zip file.
    filesToRemove
    The files to remove from zipFileName. Cannot be a null reference (Nothing in Visual Basic).
    Remarks

    Note that files contained within sub-folders will also be removed from the zip file.

    Zip files are case sensitive therefore the string passed in the filesToRemove parameter, will be used "as-is".

    For example, if a zip file contains a file named "FILE.TXT" and "file.txt" is passed to the filesToRemove parameter, "FILE.TXT" will not be removed.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also